package com.tuanbiao.controllers;

import android.content.Intent;

import com.hzjq.data.hzjq.entity.AppDataEntity;
import com.tuanbiao.base.mvp.IPresenter;
import com.tuanbiao.base.mvp.IView;
import com.tuanbiao.models.action.HttpAction;
import com.tuanbiao.models.action.SettingAction;

/**
 * @author abiao
 * @date 2022/7/4 9:04
 * @description:
 */
public interface AboutController {
    interface Model extends SettingAction, HttpAction {

    }

    interface View extends IView {
        void showVersion(String firmwareVersion,String appVersion,String buildType);

        void showFirmwareUpdate(boolean update);

        void showAppUpdate(boolean update);

        void showProgressDialog(int progress, String msg);

        void updateFailed(String msg);

        void updateFinish();

        void showAppUpdateDialog(AppDataEntity entity);

        void startInstall(Intent installAppIntent);

        void showBuildTime(String apkBuildTime);
    }

    interface Presenter extends IPresenter {

        void updateFirmware();

        void checkAppUpdate();

        void downloadApk(AppDataEntity entity);
    }
}
